﻿
.card {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    border: none;
}

.card-header {
    background-color: var(--secondary-color);
    color: white;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 8px 8px 0 0 !important;
}

.nav-tabs {
    border-bottom: 2px solid var(--primary-color);
}

    .nav-tabs .nav-link {
        font-weight: 500;
        border: none;
        color: var(--secondary-color);
        padding: 12px 20px;
        border-radius: 4px 4px 0 0;
        transition: all 0.3s;
    }

        .nav-tabs .nav-link:hover {
            background-color: rgba(52, 152, 219, 0.1);
        }

        .nav-tabs .nav-link.active {
            background-color: var(--primary-color);
            color: white;
            font-weight: 600;
            border: none;
        }

.tab-content {
    padding: 20px;
    background-color: white;
    border-radius: 0 0 8px 8px;
    border: 1px solid var(--border-color);
    border-top: none;
}

.form-section {
    background-color: var(--light-gray);
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.form-label {
    font-weight: 500;
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.form-control, .form-select {
    border-radius: 4px;
    padding: 6px 8px;
    border: 1px solid var(--border-color);
}

.btn-primary {
    background-color: var(--primary-color);
    border: none;
    padding: 6px 12px;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s;
}

    .btn-primary:hover {
        background-color: #2980b9;
        transform: translateY(-2px);
    }

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--secondary-color);
    transition: all 0.3s;
}

    .btn-outline:hover {
        background-color: var(--light-gray);
        transform: translateY(-2px);
    }

.btn-danger {
    background-color: var(--accent-color);
}

.table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
}

    .table thead th {
        background-color: var(--secondary-color);
        color: white;
        font-weight: 500;
        padding: 5px 8px;
    }

    .table tbody td {
        padding: 2px 2px;
        border-top: 1px solid var(--border-color);
    }

    .table tbody tr:hover {
        background-color: rgba(52, 152, 219, 0.05);
    }

.table-responsive {
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.action-btn {
    padding: 5px 10px;
    margin: 0 2px;
    font-size: 0.85rem;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-active {
    background-color: rgba(46, 204, 113, 0.2);
    color: #27ae60;
}

.status-inactive {
    background-color: rgba(231, 76, 60, 0.2);
    color: #c0392b;
}

.search-container {
    background-color: white;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.summary-card {
    text-align: center;
    padding: 15px;
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
    border-radius: 8px;
}

    .summary-card .value {
        font-size: 2rem;
        font-weight: 700;
        margin: 10px 0;
    }

    .summary-card .label {
        font-size: 0.9rem;
        opacity: 0.9;
    }

@media (max-width: 768px) {
    .nav-tabs .nav-link {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .form-row > div {
        margin-bottom: 10px;
    }

    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* ----------------------------弹窗样式------------------------- */
.container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
    width: 100%;
}

    .header h1 {
        font-size: 2.8rem;
        font-weight: 700;
        margin-bottom: 10px;
        text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    }

    .header p {
        font-size: 1.2rem;
        max-width: 600px;
        margin: 0 auto;
        opacity: 0.9;
    }

.dialog-header {
    background: linear-gradient(to right, #2563eb, #3b82f6);
    font-size: 1.2rem;
    padding: 6px 20px;
    color: white;
    display: flex;
    align-items: center;
    margin-top: 0;
    margin-bottom: 0;
    border-radius: 6px 6px 0 0 !important;
}

    .dialog-header i {
        font-size: 1.8rem;
        margin-right: 15px;
        background: rgba(255,255,255,0.2);
        width: 50px;
        height: 50px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .dialog-header h4 {
        font-size: 1.5rem;
        font-weight: 600;
    }

/* 弹窗内容的样式 */
.dialog-content {
    padding: 0px;
}

.dialog-item {
    padding: 20px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-label {
    font-weight: 500;
    color: #555;
    flex: 1;
}

.info-value {
    font-weight: 600;
    color: #333;
    flex: 1;
    text-align: right;
}

.amount-value {
    color: #3b82f6;
    font-size: 1.1em;
}



.input-wrapper {
    position: relative;
}


    .input-wrapper i {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: #94a3b8;
    }

.message {
    padding: 12px 15px;
    border-radius: 8px;
    margin: 15px 0;
    font-weight: 500;
    display: flex;
    align-items: center;
    background-color: #fee2e2;
    color: #ef4444;
}

    .message i {
        margin-right: 10px;
        font-size: 1.2rem;
    }

.button-group {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.dialog-button {
    flex: 1;
    padding: 8px 20px;
    border: none;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .dialog-button i {
        margin-right: 8px;
    }

.confirm-btn {
    background: linear-gradient(to right, #10b981, #34d399);
    color: white;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

    .confirm-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 15px rgba(16, 185, 129, 0.4);
    }

.cancel-btn {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

    .cancel-btn:hover {
        background: #e2e8f0;
    }

.features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
    width: 100%;
}

.feature-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 25px;
    width: 280px;
    color: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

    .feature-card:hover {
        transform: translateY(-5px);
    }

    .feature-card i {
        font-size: 2.5rem;
        margin-bottom: 15px;
        color: rgba(255, 255, 255, 0.9);
    }

    .feature-card h3 {
        font-size: 1.4rem;
        margin-bottom: 12px;
    }

    .feature-card p {
        opacity: 0.85;
        line-height: 1.6;
    }

.watermark {
    position: absolute;
    bottom: 20px;
    right: 20px;
    color: rgba(255, 255, 255, 0.15);
    font-size: 1.2rem;
    font-weight: 700;
    pointer-events: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2.2rem;
    }

    .button-group {
        flex-direction: column;
    }

    .features {
        flex-direction: column;
        align-items: center;
    }
}

.btn-white {
    color: #ffffff;
}


/* 系统状态监视器 */
.status-monitor {
    display: flex;
    justify-content: space-between;
    background: #ffffff;
    color: #2c3e50;
    padding: 8px 10px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    border: 1px solid #e6e9ed;
}

.status-item {
    display: flex;
    align-items: center;
}

.status-icon {
    font-size: 1.4rem;
    margin-right: 12px;
    width: 40px;
    height: 40px;
    background: #f0f4f8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3498db;
}

.status-text h3 {
    font-size: 0.95rem;
    margin-bottom: 0px;
    font-weight: 500;
    color: #7f8c8d;
}

.status-text p {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 4px;
    margin-bottom: 0px;
}

.status-active {
    color: #27ae60;
}

.status-inactive {
    color: #e74c3c;
}


/* 主内容区域 - 改为上下布局 */
.dashboard {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.panel {
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    border: 1px solid #e6e9ed;
}

.panel-header {
    background: #c0e4f8;
    color: #2c3e50;
    padding: 8px 8px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    font-weight: 600;
    border-bottom: 1px solid #e6e9ed;
}

    .panel-header i {
        margin-right: 10px;
        font-size: 1.3rem;
        color: #3498db;
    }

.panel-body {
    padding: 20px;
}

/* 设置表单样式 */
.form-group {
    margin-bottom: 18px;
}

    .form-group label {
        display: block;
        margin-bottom: 6px;
        font-weight: 600;
        color: #2c3e50;
        font-size: 1rem;
    }

.time-inputs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    align-items: center;
}

.time-input {
    flex-direction: column;
    align-items: center;
}

    .time-input input {
        width: 66px;
        padding: 3px;
        border: 1px solid #ddd;
        border-radius: 6px;
        font-size: 1rem;
        text-align: center;
        transition: border-color 0.2s;
        background: #f9fbfd;
    }

        .time-input input:focus {
            border-color: #3498db;
            outline: none;
            box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.1);
        }

    .time-input span {
        margin-top: 5px;
        color: #7f8c8d;
        font-size: 0.85rem;
    }

.frequency-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

.option-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.2s;
    background: #ffffff;
    height: 100%;
}

    .option-card:hover {
        border-color: #3498db;
        background: #f5f9ff;
    }

    .option-card.selected {
        border-color: #3498db;
        background: #edf5ff;
        box-shadow: 0 0 8px rgba(52, 152, 219, 0.1);
    }

.option-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

    .option-header input[type="radio"] {
        margin-right: 10px;
        width: 18px;
        height: 18px;
        accent-color: #3498db;
    }

    .option-header label {
        font-size: 1.1rem;
        font-weight: 600;
        color: #2c3e50;
        cursor: pointer;
    }

.option-content {
    padding-left: 28px;
    font-size: 0.95rem;
    color: #555;
}

.time-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.time-slot {
    display: flex;
    align-items: center;
    background: #e3f2fd;
    padding: 6px 12px;
    border-radius: 18px;
    border: 1px solid #bbdefb;
    font-size: 0.9rem;
}

    .time-slot input {
        border: none;
        background: transparent;
        font-size: 0.95rem;
        width: 72px;
    }

.remove-time {
    margin-left: 6px;
    color: #e74c3c;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0px;
}

.add-time-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 7px 12px;
    border-radius: 18px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    margin-top: 8px;
    transition: background 0.2s;
    font-size: 0.9rem;
}

    .add-time-btn:hover {
        background: #2980b9;
    }

    .add-time-btn i {
        margin-right: 5px;
    }

.action-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}


.btn-save {
    background: #ccccdd;
    color: #333399;
    flex: 1;
}

    .btn-save:hover {
        background: #ddddff;
    }

.btn-start {
    background: #27ae60;
    color: white;
    flex: 2;
}

    .btn-start:hover {
        background: #219653;
    }

.btn-stop {
    background: #e74c3c;
    color: white;
    flex: 1;
}

    .btn-stop:hover {
        background: #c0392b;
    }

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

/* 查询部分样式 */
.search-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: border-color 0.2s;
    background: #f9fbfd;
}

    .form-control:focus {
        border-color: #3498db;
        outline: none;
        box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.1);
    }

.btn-search {
    background: #3498db;
    color: white;
    grid-column: span 2;
    padding: 12px;
}

    .btn-search:hover {
        background: #2980b9;
    }

/* 结果表格样式 */
.results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 0.95rem;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
}

    .results-table th {
        background: #f8f9fa;
        padding: 12px;
        text-align: left;
        font-weight: 600;
        color: #2c3e50;
        border-bottom: 1px solid #e0e0e0;
    }

    .results-table td {
        padding: 10px 12px;
        border-bottom: 1px solid #eee;
    }

    .results-table tr:hover {
        background-color: #f5f9ff;
    }

.status-badge {
    padding: 5px 10px;
    border-radius: 18px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-success {
    background: #d4edda;
    color: #155724;
}

.status-failed {
    background: #f8d7da;
    color: #721c24;
}

.action-btn {
    padding: 6px 12px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
    font-size: 0.9rem;
}

    .action-btn:hover {
        background: #2980b9;
    }

.batch-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.select-info {
    font-weight: 500;
    color: #7f8c8d;
    font-size: 0.95rem;
}

.btn-batch {
    background: #9b59b6;
    color: white;
    padding: 10px 18px;
}

    .btn-batch:hover {
        background: #8e44ad;
    }



/* 响应式设计 */
@media (max-width: 900px) {
    .dashboard {
        grid-template-columns: 1fr;
    }

    .status-monitor {
        flex-direction: column;
        gap: 15px;
    }

    .search-form {
        grid-template-columns: 1fr;
    }

    .btn-search {
        grid-column: span 1;
    }

    .time-inputs {
        flex-wrap: wrap;
    }
}


.img-up {
    padding-bottom: 0.12rem;
}
